/**
 * 题库管理模块API
 */
const http = uni.$u.http

// 题库分类列表
export const qbmsCategoryList = (data) => http.get('/client/qbms/category/list', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题库答题数据
export const qbmsCategoryAnswerData = (data) => http.get('/client/qbms/category/answer/data', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题库答题排名
export const qbmsAnswerRank = (data) => http.get('/client/qbms/answer/rank', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题库章节数据
export const qbmsChapterData = (data) => http.get('/client/qbms/chapter/data', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题目章节数据
export const qbmsQuestionChapterData = (data) => http.get('/client/qbms/question/chapter/data', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题目信息
export const qbmsQuestionInfo = (data) => http.get('/client/qbms/question/info', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题目列表
export const qbmsQuestionList = (data) => http.get('/client/qbms/question/list', {
	params: data,
	custom: {
		auth: true,
	},
})

// 答案检查 
export const questionAnswerCheck = (data) => http.post('/client/qbms/question/answer/check', data, {
	custom: {
		auth: true
	}
})

// 题目收藏
export const qbmsQuestionFavorite = (data) => http.get('/client/qbms/question/favorite', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题目收藏记录
export const qbmsQuestionFavoriteRecord = (data) => http.get('/client/qbms/question/favorite/record', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题目收藏列表
export const qbmsQuestionFavoriteList = (data) => http.get('/client/qbms/question/favorite/list', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题目笔记内容
export const qbmsQuestionNoteContent = (data) => http.get('/client/qbms/question/note/content', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题目笔记保存
export const qbmsQuestionNoteSave = (data) => http.post('/client/qbms/question/note/save', data, {
	custom: {
		auth: true
	}
})

// 题目纠错保存
export const qbmsQuestionFixSave = (data) => http.post('/client/qbms/question/fix/save', data, {
	custom: {
		auth: true
	}
})

// 题目解析保存
export const qbmsQuestionResolveSave = (data) => http.post('/client/qbms/question/resolve/save', data, {
	custom: {
		auth: true
	}
})



// 题目笔记列表
export const qbmsQuestionNoteList = (data) => http.get('/client/qbms/question/note/list', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题目答错列表
export const qbmsQuestionAnswerMistakeList = (data) => http.get('/client/qbms/question/answer/mistake/list', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题目答题重置
export const qbmsQuestionAnswerRenewal = (data) => http.get('/client/qbms/question/answer/renewal', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题目答题列表
export const qbmsQuestionAnswerList = (data) => http.get('/client/qbms/question/answer/list', {
	params: data,
	custom: {
		auth: true,
	},
})

// 题库导航数据
export const qbmsNavData = (data) => http.get('/client/qbms/nav/data', {
	params: data,
	custom: {
		auth: true,
	},
})